<?php

namespace common\models;

class Question extends \yii\db\ActiveRecord
{
    public static function tableName()
    {
        return 'user_questions';
    }

    /**
     * {@inheritdoc}
     */
    public function rules()
    {
        return [
            [['user_id','status'], 'integer'],
            [['question_text', 'question_user_info','imgs'], 'string'],
        ];
    }

    /**
     * {@inheritdoc}
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'question_text' => 'Question Text',
            'question_user_info' => 'Question User Info',
            'imgs'=>'Imgs',
            'user_id'=>'User Id',
            'status'=>'Status'
        ];
    }
}